package com.example.entity;

import com.example.pojo.EssayType;
import com.example.pojo.Menu;
import lombok.Data;

/**
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/1/27
 * @time: 15:40
 */
@Data
public class QueryEssayType {
    /**
     * 编码
     */
    private String qryCode;
    /**
     * 父编码
     */
    private String qryParent;
    /**
     * 名称
     */
    private String qryTitle;
    /**
     * 删除标识符
     */
    private Integer qryDeleted;

    public void init(EssayType essayType){
        qryCode = essayType.getCode();
        qryParent = essayType.getParent();
        qryTitle = essayType.getTitle();
        qryDeleted = essayType.getDeleted();
    }
}
